package com.crazy.cloud;

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController

public class FirstController {
	@RequestMapping(value = "/persion/{persionID}")
	public Persion findPersion(@PathVariable("persionID") Integer persionID) {
		Persion p = new Persion();
		p.setAge(99);
		p.setName("lucy");
		p.setId(persionID);
		return p;	
	}

}
